import request from '@/utils/request.js'
// 获取商品详情数据
export const detailGetGoodsInfoService = (id) => {
  return request.get('/goods', {
    params: {
      id
    }
  })
}

// 获取24热榜与周热榜数据
export const detailGetHotData = ({ id, type }) => {
  return request.get('/goods/hot', {
    params: {
      id,
      type,
      limit: 3
    }
  })
}
